home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / cstdio.arc / INCLUDE.ARC / COMIO.H < prev    next >
C/C++ Source or Header  |  1985-09-09  |  757b  |  35 lines

  1. /*    comio.h - COMn communications I/O definitions.
  2.     (C) Copyright 1985 Cray Research Inc. - All Rights Reserved.
  3.     G. R. Mansfield.  85/06/19.
  4.     Ver 1.0-5909.
  5. */
  6.  
  7. #ifndef _comio    /* allow more than 1 include of this file */
  8. #define _comio
  9.  
  10. extern BYTE com_ls;        /* line status */
  11. extern BYTE com_ms;        /* modem status */
  12.  
  13. extern int com_ct[6];            /* counters */
  14. /*
  15.     0 = unidentified interrupts
  16.     1 = line status interrupts
  17.     2 = modem status interrupts
  18.     3 = receive buffer overflow
  19.     4 = receive errors
  20.     5 = interrupt request
  21. */
  22.  
  23. /*    Buffer pointers. */
  24. struct cbc_s {
  25.     int    bf;
  26.     BYTE *ft;    /* first */
  27.     BYTE *in;    /* in */
  28.     BYTE *ot;    /* out */
  29.     BYTE *lm;    /* limit */
  30. }
  31. com_rb,    /* receive buffer */
  32. com_xb; /* transmit buffer */
  33.  
  34. #endif
  35.